import http from '@/utils/http'
// 获取热门数据
function apiGetHotData () {
  return http({
    url: '/chart-data/hot'
  })
}
// 城市索引
function apiCityIndex () {
  return http({
    url: '/chart-data/indexes'
  })
}
// 获取统计信息
function apiGetAll ({ city, position }) {
  return http({
    url: '/chart-data/statistics',
    params: {
      city,
      position
    }
  })
}
export { apiGetHotData, apiCityIndex, apiGetAll }
